t = 0
def setup():
    size(600, 600)

def draw():
    global t
    background(255)
    translate(width/2, height/2)
    rotate(radians(t))
    for i in range(12):
        pushMatrix()
        translate(200, 0)
        rotate(radians(5 * t))
        rectMode(CENTER)
        rect(0, 0, 50, 50)
        popMatrix()
        rotate(radians(360 / 12))
    t += 0.1
